<template>
  <el-container>
    <el-header>
      <div style="width: 100%">
        <navigator></navigator>
      </div>
    </el-header>
    <el-main>
      <el-card class="box-card" style="width: 85%;margin: auto">
        <el-table
          :data="conditionSheetsArray"
          style="width: 100%">
          <el-table-column
            prop="authorId"
            label="作者ID"
            width="100">
          </el-table-column>
          <el-table-column
            prop="conditionSheetId"
            label="条件单ID"
            width="100">
          </el-table-column>
          <el-table-column
            prop="commodityName"
            label="条件单商品名称"
            width="150">
          </el-table-column>
          <el-table-column
            prop="commodityDescription"
            label="条件单商品简介"
            width="450">
          </el-table-column>
          <el-table-column
            prop="commodityPrice"
            label="条件单商品定价"
            width="150"
            style="padding-left: 50px">
          </el-table-column>
          <el-table-column>
            <template #default="scope">
              <el-button style="margin-right: 30px;margin-left: 80px" type="primary" @click.prevent="auditSuccess(scope.$index, conditionSheetsArray)">过审</el-button>
              <el-button @click.prevent="auditFail(scope.$index, conditionSheetsArray)">驳回</el-button>
            </template>
          </el-table-column>
        </el-table>
      </el-card>
    </el-main>
  </el-container>
</template>

<script lang="ts" src="./auditGoods.ts"></script>

<style scoped>

</style>
